//
// Created by Martin on 2021/10/2.
//

#ifndef DESIGNPATTERN_CPP_CONCRETEFLYWEIGHT_H
#define DESIGNPATTERN_CPP_CONCRETEFLYWEIGHT_H

#include "Flyweight.h"
#include <string>

class ConcreteFlyweight : public Flyweight {
public:
    // 接受外部状态
    ConcreteFlyweight(std::string& extrinsic) : Flyweight(extrinsic) { }

    void operation(int extrinsic) override;
};


#endif //DESIGNPATTERN_CPP_CONCRETEFLYWEIGHT_H
